module.exports = {
  value: {
    type: [String, Number, Boolean],
    default: '',
    name: '输入值',
    filedType: 'value'
  },
  switchSelector: {
    type: String,
    default: 'body',
    name: '面板开关选择器',
    filedType: 'string'
  },

  selfCloseSwitch: {
    type: String,
    default: '',
    name: '自身关闭开关',
    nameTip: '指定了该开关后，只能在面板内部关闭面板',
    filedType: 'string'
  },

  trigger: {
    type: String,
    default: 'click',
    name: '触发事件',
    nameTip: '如果要兼容pad，请选择click事件',
    filedType: 'select',
    options: [
      {
        name: '鼠标单击时显示面板',
        value: 'click'
      },
      {
        name: '鼠标滑过时显示触发',
        value: 'hover'
      }
    ]
  },

  containerElement: {
    type: String,
    default: 'body',
    name: '挂载点',
    filedType: 'string'
  },

  positionElement: {
    type: String,
    default: 'auto',
    name: '参照哪个元素定位',
    nameTip: '默认值:auto-参照开关元素定位',
    filedType: 'string'
  },

  placement: {
    type: String,
    default: 'right-start',
    name: '从哪个位置弹出面板',
    filedType: 'select',
    options: [
      {
        name: 'top',
        value: 'top'
      },
      {
        name: 'top-start',
        value: 'top-start'
      },
      {
        name: 'top-end',
        value: 'top-end'
      },
      {
        name: 'right',
        value: 'right'
      },
      {
        name: 'right-start',
        value: 'right-start'
      },
      {
        name: 'right-end',
        value: 'right-end'
      },
      {
        name: 'bottom',
        value: 'bottom'
      },
      {
        name: 'bottom-start',
        value: 'bottom-start'
      },
      {
        name: 'bottom-end',
        value: 'bottom-end'
      },
      {
        name: 'left',
        value: 'left'
      },
      {
        name: 'left-start',
        value: 'left-start'
      },
      {
        name: 'left-end',
        value: 'left-end'
      }
    ]
  },

  noArrow: {
    type: Boolean,
    default: true,
    name: '隐藏箭头',
    nameTip: '默认参数开关元素定位',
    filedType: 'switch'
  },

  zIndex: {
    type: String,
    default: '1031',
    name: 'z-index',
    nameTip: '默认值:1031',
    filedType: 'string'
  },
  divWidth: {
    type: String,
    default: '300px',
    name: '弹窗宽度',
    filedType: 'string'
  },
  divHeight: {
    type: String,
    default: '240px',
    name: '弹窗高度',
    filedType: 'string'
  },

  icons1: {
    type: Array,
    default () {
      return []
    },
    name: '图片列表（弹窗前）',
    filedType: 'file',
    limit: 100,
    maxSize: 1024
  },
  icons: {
    type: Array,
    default () {
      return []
    },
    name: '图片列表（弹窗后）',
    filedType: 'file',
    limit: 100,
    maxSize: 1024
  },
  iconWidth: {
    type: String,
    default: '140px',
    name: '图片宽度',
    filedType: 'string'
  },
  iconHeight: {
    type: String,
    default: '140px',
    name: '图片高度',
    filedType: 'string'
  },
  borderHeight: {
    type: String,
    default: '80px',
    name: '渐变线条位置',
    filedType: 'string'
  },

  autoOpen: {
    type: Boolean,
    default: false,
    name: '自动弹出和收起',
    nameTip: '默认参数开关元素定位',
    filedType: 'switch'
  },
  openTimer: {
    type: String,
    default: '50000',
    name: '间隔时间',
    filedType: 'string',
    vif: {
      key: 'autoOpen',
      value: true
    }
  },
  curIndex: {
    type: String,
    default: '1',
    name: '当前顺序',
    filedType: 'string',
    vif: {
      key: 'autoOpen',
      value: true
    }
  },
  totalIndex: {
    type: String,
    default: '3',
    name: '总弹窗数',
    filedType: 'string',
    vif: {
      key: 'autoOpen',
      value: true
    }
  },
}
